package org.xdq.策略模式;

public class Test {

    static void test(Action action){
        new Fun(action).fun();
    }

    public static void main(String[] args) {
        //test(new ActionImpl());

        test(new Action(){

            @Override
            public void doFour() {
                System.out.println("音乐欣赏");
            }

            @Override
            public void doSix() {
                System.out.println("观赏舞蹈");
            }

        });
    }
}
